<?php

namespace App\Http\Controllers\admin\defaults;


use App\Helpers\commonFuc;
use App\Http\Controllers\index\addon\Apply2Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;

class TestController extends BaseController
{
    private $tpviewhead='admin.defaults.login.';
    private $table='admin';

    function __construct(Request $thisRequest)
    {
        parent::__construct($thisRequest,$this->tpviewhead,$this->table);
    }


    function test(){


        dd(commonFuc::encrypt('{"devType":2,"timeout":20000,"expire_time":1640784362}'));
        dd(commonFuc::decrypt("MDAwMDAwMDAwMMereqKOvZKFl42moKyb0KmypK1hmIpqpJtqumCt0KDfr3WnoI69oKeTja6gu2SzoMi4uJqGnX5qhrGlY7OqguCwnHpw"));


        $checkred = new Apply2Controller($this->thisRequest);
        $checkred = $checkred->checkApplyRed(69);
        dd($checkred);

        $data=$this->TableFieldCache('sl_admin');




        //$data = $this->thisModel->select('SELECT tbs.name '.$this->table.',ds.value;');
        //$data = array_count_values($data);
       // dump()

        //$data = Arr::pluck($data,'COLUMN_COMMENT');
        dd($data);
        $thism = new Request();
        $thism->tt = '33';
        $loginc = new LoginController($thism);
        dd($loginc->login());
    }



}
